package com.ujoin.dao;

import java.util.List;

import com.ujoin.bean.Collection;

public interface ICollectionDAO {

	public abstract void save(Collection transientInstance);

	public abstract void delete(Collection persistentInstance);

	public abstract Collection findById(java.lang.Integer id);

	public abstract List findByExample(Collection instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByUserId(Object userId);

	public abstract List findByActivityId(Object activityId);

	public abstract List findByValid(Object valid);

	public abstract List findAll();

	public abstract Collection merge(Collection detachedInstance);

	public abstract void attachDirty(Collection instance);

	public abstract void attachClean(Collection instance);

	// Newly Added
	public abstract Collection findByUserIdActivityId(Object userId, Object activityId);
}